package com.jonychen.swagger2demo.common.entity.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Description:用户实体类
 * @Author: kui.chen@100credit.com
 * @Date: 2019/9/6 16:55
 */
@ApiModel(value = "User", description = "用户实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    @ApiModelProperty(value = "唯一主键", dataType = "long")
    private long id;

    @ApiModelProperty(value = "用户id", dataType = "Integer")
    private Integer userId;

    @Size(min = 1, max = 100)
    @ApiModelProperty(value = "用户名", dataType = "String")
    private String username;

    @Size(min = 1, max = 200)
    @ApiModelProperty(value = "名称", dataType = "String")
    private String firstName;

    @Size(min = 1, max = 200)
    @ApiModelProperty(value = "姓氏", dataType = "String")
    private String lastName;

    @ApiModelProperty(value = "邮箱", dataType = "String")
    private String email;

    @ApiModelProperty(value = "密码", dataType = "String")
    private String password;

    @ApiModelProperty(value = "手机号", dataType = "String")
    private String phone;

    @ApiModelProperty(value = "用户状态", dataType = "int")
    private int userStatus;

}
